package com.fanxuankai.boot.monitor;

import java.util.Collections;
import java.util.List;

/**
 * @author fanxuankai
 */
public class BaseMonitorProperties<T> {
    public static final String ENABLED = "enabled";
    private boolean enabled;
    private String title;
    private String subtitle;
    private String cron;
    private List<T> configs = Collections.emptyList();

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public List<T> getConfigs() {
        return configs;
    }

    public void setConfigs(List<T> configs) {
        this.configs = configs;
    }
}
